home *** CD-ROM | disk | FTP | other *** search
/ The Very Best of Atari Inside / The Very Best of Atari Inside 1.iso / mint / mint110s / fasttext.h < prev    next >
C/C++ Source or Header  |  1993-08-16  |  2KB  |  58 lines

  1. #if 0
  2. #include <osbind.h>
  3. #include <linea.h>
  4. #endif
  5.  
  6. #define ALT_1 0x780000L
  7. #define ALT_2 0x790000L
  8. #define ALT_0 0x810000L
  9.  
  10. typedef struct screen {
  11.     short    hidecnt;    /* cursor hide count */
  12.     short    mcurx, mcury;    /* current mouse X, Y position */
  13.     char    mdraw;
  14.     char    mouseflag;
  15.     long    junk1;
  16.     short    savex, savey;    /* saved X, Y position */
  17.     short    msavelen;    /* mouse save stuff */
  18.     long    msaveaddr;
  19.     short    msavestat;
  20.     long    msavearea[64];
  21.     long    user_tim, next_tim; /* time vector stuff */
  22.     long    user_but, user_cur,
  23.         user_mot;    /* more user vectors */
  24.     short    cheight;    /* character height */
  25.     short    maxx;        /* number of characters across - 1 */
  26.     short    maxy;        /* number of characters high - 1 */
  27.     short    linelen;    /* length (in bytes) of a line of characters */    
  28.     short    bgcol;        /* background color */
  29.     short    fgcol;        /* foreground color */
  30.     char    *cursaddr;    /* cursor address */
  31.     short    v_cur_of;    /* ??? */
  32.     short    cx, cy;        /* current (x,y) position of cursor */
  33.     char    period;        /* cursor flash period (in frames) */    
  34.     char    curstimer;    /* cursor flash timer */
  35.     char    *fontdata;    /* pointer to font data */
  36.     short    firstcode;    /* first ASCII code in font */
  37.     short    lastcode;    /* last ASCII code in font */
  38.     short    form_width;    /* # bytes/scanline in font data */
  39.     short    xpixel;
  40.     char    *fontoff;    /* pointer to font offset table */
  41.     char    flags;        /* e.g. cursor on/off */
  42.     char    reserved;
  43.     short    ypixel;
  44.     short    width;        /* length of a screen scan line */
  45.     short    planes;        /* number of planes on screen */
  46.     short    planesiz;    /* length of a screen scan line */
  47. } SCREEN;
  48.  
  49. #define SCNSIZE(v) ( (((long)v->maxy + hardscroll + 2)) * v->linelen )
  50.  
  51. /* possible flags for cursor state, etc. */
  52. #define CURS_FLASH    0x01        /* cursor flashing */
  53. #define CURS_FSTATE    0x02        /* cursor in flash state */
  54. #define CURS_ON        0x04        /* cursor on */
  55. #define FWRAP        0x08        /* wrap cursor at end of line */
  56. #define FINVERSE    0x10        /* invert text */
  57. #define CURS_UPD    0x40        /* cursor update flag */
  58.